package com.lanhu.demo.service.impl;

import com.lanhu.demo.dao.UserMapper;
import com.lanhu.demo.entity.User;
import com.lanhu.demo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public boolean insert(User user) {
        return userMapper.insert(user) > 0;
    }

    @Override
    public boolean verifyPassword(String email, String password) {
        return userMapper.verifyPassword(email, password) > 0;
    }
}
